package com.xinshi1;

import com.xinshi.school.Student;

public class StudentTest {
    public static void main(String[] args) {
        Student student1=new Student();
        student1.setter("20245105357","tianmengxain",20,"计算机");
        Student student2=new Student("2024001","lisi",22,"软件工程");
        student1.showInfo();
        student2.showInfo();
        student2.updataMajor("人工智能");
        System.out.println("=======修改后=======");
        student2.showInfo();
        student1.isAgeValid();
        student2.isAgeValid();
    }
}
